package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/8/11 0011
 **/
@Data
@ApiModel("地址对象")
public class Address implements Serializable {
    @Serial
    private static final long serialVersionUID = 5470625806520475860L;

    @ApiModelProperty(value = "地址编码")
    private String code;

    @ApiModelProperty(value = "地址名称")
    private String name;

    @ApiModelProperty(value = "子级地址")
    private List<Address> children;

    public Address(){}

    public Address(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public Address(String code, String name, List<Address> children) {
        this.code = code;
        this.name = name;
        this.children = children;
    }
}
